
import 'package:flutter/material.dart';


/*
状态管理-监听共享数据:

修改并通知更新:  context.read<XChangeNotifier>().updateData1(false);
显示和使用监听数据: '${context.watch<XChangeNotifier>().data1}';

 */
class XChangeNotifier with ChangeNotifier {
  dynamic data1;
  dynamic data2;
  dynamic data3;
  dynamic data4;
  dynamic data5;
  dynamic data6;
  dynamic data7;
  dynamic data8;
  dynamic data9;
  dynamic data10;


  bool isShowSearchBarDelWidget=false;
  void updateIsShowSearchBarDelWidget(bool data) {
    isShowSearchBarDelWidget=data;
    notifyListeners();
  }


  /////////////////////////////////////////
  void updateData1(dynamic data) {
    data1=data;
    notifyListeners();
  }
  void updateData2(dynamic data) {
    data2=data;
    notifyListeners();
  }
  void updateData3(dynamic data) {
    data3=data;
    notifyListeners();
  }
  void updateData4(dynamic data) {
    data4=data;
    notifyListeners();
  }
  void updateData5(dynamic data) {
    data5=data;
    notifyListeners();
  }
  void updateData6(dynamic data) {
    data6=data;
    notifyListeners();
  }
  void updateData7(dynamic data) {
    data7=data;
    notifyListeners();
  }
  void updateData8(dynamic data) {
    data8=data;
    notifyListeners();
  }
  void updateData9(dynamic data) {
    data9=data;
    notifyListeners();
  }
  void updateData10(dynamic data) {
    data10=data;
    notifyListeners();
  }




}